<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            text-align: center;
        }
    </style>
</head>
<body>
<div>

    <script>
            for (var i = 0; i < 10; i++) {

                for (var j = 0; j <=i ; j++) {
                    document.write("&nbsp;*&nbsp;");
                }
                document.write("<br>")
            }
    </script>
</div>
</body>

</html>